﻿using Autofac;
using Autofac.Extras.DynamicProxy;
using System;
using System.Collections.Generic;
using System.Text;
 
using Model;

namespace Service
{
    /// <summary>
    /// autofac  IOC依赖注入
    /// </summary>
    public class CustomAutofacModule : Autofac.Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            //builder.RegisterType<Database>().As<IDatabase>().SingleInstance();
            //builder.RegisterType<Redis>().As<IRedis>().SingleInstance();
        }
    }
}
